package cc;

import java.io.IOException;
import java.text.DecimalFormat;

import org.apache.commons.lang3.StringUtils;
import org.apache.http.client.ClientProtocolException;

import com.bootdo.common.wx.WeiXinUtil;

public class ccc2 {
	
	public static void main(String[] args) throws ClientProtocolException, IOException {
		  String aa="-100";
		  Double double2String = getDouble2String(aa);
		  if(double2String <= 0) {
			  System.out.println(double2String);
		  }
		  
	}
	
	private static Double getDouble2String(String num) {
		if(StringUtils.isNoneBlank(num)) {
			Double cny = Double.parseDouble(num);
			DecimalFormat df = new DecimalFormat("0.00"); 
			String CNY = df.format(cny);
			Double cny1 = Double.parseDouble(CNY);
			return cny1;
		}
		return 0.00;
	}

}
